<h2><img src="static/images/icon/setting.png" style="margin-bottom:-10px;"/> Pannello di controllo </h2>
<ul id="options">
	<li><img src="static/images/icon/key.png" style="margin-bottom:-3px;"/> <a href="?p=profile&id=<?php echo $user->id; ?>&mode=EditProfile&option=changePassword">Modifica la password</a></li>
	<li><img src="static/images/icon/sett.png" style="margin-bottom:-3px;"/> <a href="?p=profile&id=<?php echo $user->id; ?>&mode=EditProfile&option=editInfo">Modifica informazioni personali</a></li>
	<li><img src="static/images/icon/picture.png" style="margin-bottom:-4px;"/> <a href="?p=profile&id=<?php echo $user->id; ?>&mode=EditProfile&option=changeAvatar">Modifica l'immagine personale</a></li>
</ul>
<div id="editProfile">
	<?php 
		if(isset($_GET['option'])){
			switch($_GET['option']){
				case 'changePassword':
					echo '<div id="changePassword">';
						include('php/pages/changePassword.php');
					echo '</div>';
				break;
				case 'editInfo':
					echo '<div id="changeInfo">';
						include('php/pages/changeInfo.php');
					echo '</div>';
				break;
				case 'changeAvatar':
					echo '<div id="changeAvatar">';
						include('php/pages/changeAvatar.php');
					echo '</div>';
				break;
				default:
					echo 'Pagina non trovata!';
				break;
				
			}
		}
			
	?>
</div>